openapi: 3.1.0
info:
  title: ITplanet-weather
  version: 1.0.0
paths:
  /registration:
    post:
      tags:
        - Auth routers
      summary: Register User
      operationId: register_user_registration_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegistrationRequestSchema'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegistrationResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /login:
    post:
      tags:
        - Auth routers
      summary: Login User
      operationId: login_user_login_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginRequestSchema'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoginResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /accounts/search:
    get:
      tags:
        - Accounts routers
      summary: Search Accounts
      operationId: search_accounts_accounts_search_get
      parameters:
        - name: firstName
          in: query
          required: false
          schema:
            type: string
            title: Firstname
        - name: lastName
          in: query
          required: false
          schema:
            type: string
            title: Lastname
        - name: email
          in: query
          required: false
          schema:
            type: string
            title: Email
        - name: from
          in: query
          required: false
          schema:
            type: integer
            title: From
        - name: size
          in: query
          required: false
          schema:
            type: integer
            title: Size
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  '/accounts/{accountId}':
    get:
      tags:
        - Accounts routers
      summary: Get Account
      operationId: get_account_accounts__accountId__get
      parameters:
        - name: accountId
          in: path
          required: true
          schema:
            type: integer
            title: Accountid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAccountResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
        - Accounts routers
      summary: Edit Account
      operationId: edit_account_accounts__accountId__put
      parameters:
        - name: accountId
          in: path
          required: true
          schema:
            type: integer
            title: Accountid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditAccountRequestSchema'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAccountResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
        - Accounts routers
      summary: Delete Account
      operationId: delete_account_accounts__accountId__delete
      parameters:
        - name: accountId
          in: path
          required: true
          schema:
            type: integer
            title: Accountid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /region:
    post:
      tags:
        - Region routers
      summary: Create Region
      operationId: create_region_region_post
      parameters:
        - name: id
          in: cookie
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRegionRequestSchema'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateRegionResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  '/region/{regionId}':
    get:
      tags:
        - Region routers
      summary: Get Region
      operationId: get_region_region__regionId__get
      parameters:
        - name: regionId
          in: path
          required: true
          schema:
            type: integer
            title: Regionid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRegionResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
        - Region routers
      summary: Edit Region
      operationId: edit_region_region__regionId__put
      parameters:
        - name: regionId
          in: path
          required: true
          schema:
            type: integer
            title: Regionid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegionEditRequestSchema'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegionEditResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
        - Region routers
      summary: Delete Region
      operationId: delete_region_region__regionId__delete
      parameters:
        - name: regionId
          in: path
          required: true
          schema:
            type: integer
            title: Regionid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /region/types:
    post:
      tags:
        - Region routers
      summary: Create Region Type
      operationId: create_region_type_region_types_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRegionTypeSchema'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRegionTypeSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  '/region/types/{typeId}':
    get:
      tags:
        - Region routers
      summary: Get Region Type
      operationId: get_region_type_region_types__typeId__get
      parameters:
        - name: typeId
          in: path
          required: true
          schema:
            type: integer
            title: Typeid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRegionTypeSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
        - Region routers
      summary: Edit Region Type
      operationId: edit_region_type_region_types__typeId__put
      parameters:
        - name: typeId
          in: path
          required: true
          schema:
            type: integer
            title: Typeid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditRegionTypeSchema'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRegionTypeSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
        - Region routers
      summary: Delete Region Type
      operationId: delete_region_type_region_types__typeId__delete
      parameters:
        - name: typeId
          in: path
          required: true
          schema:
            type: integer
            title: Typeid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /region/weather:
    post:
      tags:
        - Weather routers
      summary: Add Weather
      operationId: add_weather_region_weather_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWeatherRequestSchema'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWeatherResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /region/weather/search:
    get:
      tags:
        - Weather routers
      summary: Search Weather
      operationId: search_weather_region_weather_search_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  '/region/weather/{regionId}':
    get:
      tags:
        - Weather routers
      summary: Get Weather By Id
      operationId: get_weather_by_id_region_weather__regionId__get
      parameters:
        - name: regionId
          in: path
          required: true
          schema:
            type: integer
            title: Regionid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWeatherForRegion'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
        - Weather routers
      summary: Edit Weather
      operationId: edit_weather_region_weather__regionId__put
      parameters:
        - name: region_id
          in: query
          required: true
          schema:
            type: integer
            title: Region Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditWeatherRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
        - Weather routers
      summary: Delete Weather
      operationId: delete_weather_region_weather__regionId__delete
      parameters:
        - name: regionId
          in: path
          required: true
          schema:
            type: integer
            title: Regionid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  '/region/{regionId}/weather/{weatherId}':
    post:
      tags:
        - Weather routers
      summary: Add Weather For Region
      operationId: add_weather_for_region_region__regionId__weather__weatherId__post
      parameters:
        - name: regionId
          in: path
          required: true
          schema:
            type: integer
            title: Regionid
        - name: weatherId
          in: path
          required: true
          schema:
            type: integer
            title: Weatherid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWeatherForRegion'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
        - Weather routers
      summary: Delete Weather For Region
      operationId: delete_weather_for_region_region__regionId__weather__weatherId__delete
      parameters:
        - name: regionId
          in: path
          required: true
          schema:
            type: integer
            title: Regionid
        - name: weatherId
          in: path
          required: true
          schema:
            type: integer
            title: Weatherid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegionDeleteWeatherResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /region/weather/forecast:
    post:
      tags:
        - Weather forecast routers
      summary: Add Weather Forecast
      operationId: add_weather_forecast_region_weather_forecast_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateWeatherForecastRequestSchema'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWeatherForecastResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  '/region/weather/forecast/{forecastId}':
    get:
      tags:
        - Weather forecast routers
      summary: Get Weather Forecast By Id
      operationId: get_weather_forecast_by_id_region_weather_forecast__forecastId__get
      parameters:
        - name: forecastId
          in: path
          required: true
          schema:
            type: integer
            title: Forecastid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWeatherForecastResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
        - Weather forecast routers
      summary: Edit Weather Forecast
      operationId: edit_weather_forecast_region_weather_forecast__forecastId__put
      parameters:
        - name: forecastId
          in: path
          required: true
          schema:
            type: integer
            title: Forecastid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditWeatherForecastRequestSchema'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWeatherForecastResponseSchema'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
        - Weather forecast routers
      summary: Delete Weather Forecast
      operationId: delete_weather_forecast_region_weather_forecast__forecastId__delete
      parameters:
        - name: forecastId
          in: path
          required: true
          schema:
            type: integer
            title: Forecastid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CreateRegionRequestSchema:
      properties:
        name:
          type: string
          title: Name
          description: Название региона
        parentRegion:
          type: string
          title: Parentregion
          description: Название родительского региона
        regionType:
          type: integer
          title: Regiontype
          description: Идентификатор типа региона
        latitude:
          type: number
          title: Latitude
          description: Координаты широты
        longitude:
          type: number
          title: Longitude
          description: Координаты долготы
      type: object
      required:
        - name
        - latitude
        - longitude
      title: CreateRegionRequestSchema
    CreateRegionResponseSchema:
      properties:
        id:
          type: integer
          title: Id
          description: Идентификатор регион
        name:
          type: string
          title: Name
          description: Название региона
        parentRegion:
          anyOf:
            - type: string
            - type: 'null'
          title: Parentregion
          description: Название родительского региона
        regionType:
          anyOf:
            - type: integer
            - type: 'null'
          title: Regiontype
          description: Идентификатор типа региона
        latitude:
          type: number
          title: Latitude
          description: Координаты широты
        longitude:
          type: number
          title: Longitude
          description: Координаты долготы
      type: object
      required:
        - id
        - name
        - parentRegion
        - regionType
        - latitude
        - longitude
      title: CreateRegionResponseSchema
    CreateRegionTypeSchema:
      properties:
        type:
          type: string
          title: Type
          description: Тип региона
      type: object
      required:
        - type
      title: CreateRegionTypeSchema
    CreateWeatherForecastRequestSchema:
      properties:
        regionId:
          type: integer
          title: Regionid
          description: 'Идентификатор региона, для которого делается прогноз'
        dateTime:
          type: string
          format: date-time
          title: Datetime
          description: 'Дата и время, на которые делается прогноз в формате ISO-8601'
        temperature:
          type: number
          title: Temperature
          description: 'Прогнозируемая температура, °C'
        weatherCondition:
          allOf:
            - $ref: '#/components/schemas/WeatherEnum'
          description: >-
            Прогнозируемое состояние погоды. Доступные значения: CLEAR, CLOUDY,
            RAIN, SNOW, FOG, STORM
      type: object
      required:
        - regionId
        - dateTime
        - temperature
        - weatherCondition
      title: CreateWeatherForecastRequestSchema
    CreateWeatherRequestSchema:
      properties:
        regionId:
          type: integer
          title: Regionid
          description: Идентификатор региона
        temperature:
          type: number
          title: Temperature
          description: 'Температура в регионе, °C'
        humidity:
          type: number
          title: Humidity
          description: 'Влажность воздуха в регионе, %'
        windSpeed:
          type: number
          title: Windspeed
          description: 'Скорость ветра, м/с'
        weatherCondition:
          allOf:
            - $ref: '#/components/schemas/WeatherEnum'
          description: Текущее состояние погоды
        precipitationAmount:
          type: number
          title: Precipitationamount
          description: 'Количество осадков, мм'
        measurementDateTime:
          type: string
          format: date-time
          title: Measurementdatetime
          description: Дата и время измерения погодных условий в формате ISO-8601
        weatherForecast:
          items:
            type: integer
          type: array
          title: Weatherforecast
          description: Массив идентификаторов объектов с прогнозом погоды на ближайшие дни
      type: object
      required:
        - regionId
        - temperature
        - humidity
        - windSpeed
        - weatherCondition
        - precipitationAmount
        - measurementDateTime
        - weatherForecast
      title: CreateWeatherRequestSchema
    EditAccountRequestSchema:
      properties:
        firstName:
          type: string
          title: Firstname
          description: Новое имя пользователя
        lastName:
          type: string
          title: Lastname
          description: Новая фамилия пользователя
        email:
          type: string
          title: Email
          description: Новый адрес электронной почты
        password:
          type: string
          title: Password
          description: Пароль от аккаунт
      type: object
      required:
        - firstName
        - lastName
        - email
        - password
      title: EditAccountRequestSchema
    EditRegionTypeSchema:
      properties:
        type:
          type: string
          title: Type
          description: Новый тип региона
      type: object
      required:
        - type
      title: EditRegionTypeSchema
    EditWeatherForecastRequestSchema:
      properties:
        temperature:
          type: number
          title: Temperature
          description: 'Новая прогнозируемая температура, °C'
        weatherCondition:
          allOf:
            - $ref: '#/components/schemas/WeatherEnum'
          description: >-
            Новое прогнозируемое состояние погоды. Доступные значения: CLEAR,
            CLOUDY, RAIN, SNOW, FOG, STORM
        dateTime:
          type: string
          format: date-time
          title: Datetime
          description: Новая дата и время прогноза в формате ISO-8601
      type: object
      required:
        - temperature
        - weatherCondition
        - dateTime
      title: EditWeatherForecastRequestSchema
    EditWeatherRequest:
      properties:
        regionName:
          type: string
          title: Regionname
        temperature:
          type: number
          title: Temperature
        humidity:
          type: number
          title: Humidity
        windSpeed:
          type: number
          title: Windspeed
        weatherCondition:
          $ref: '#/components/schemas/WeatherEnum'
        precipitationAmount:
          type: number
          title: Precipitationamount
        measurementDateTime:
          type: string
          format: date-time
          title: Measurementdatetime
        weatherForecast:
          items:
            type: integer
          type: array
          title: Weatherforecast
      type: object
      required:
        - regionName
        - temperature
        - humidity
        - windSpeed
        - weatherCondition
        - precipitationAmount
        - measurementDateTime
        - weatherForecast
      title: EditWeatherRequest
    GetAccountResponseSchema:
      properties:
        id:
          type: integer
          title: Id
          description: Идентификатор аккаунта пользователя
        firstName:
          type: string
          title: Firstname
          description: Имя пользователя
        lastName:
          type: string
          title: Lastname
          description: Фамилия пользователя
        email:
          type: string
          title: Email
          description: Адрес электронной почты
      type: object
      required:
        - id
        - firstName
        - lastName
        - email
      title: GetAccountResponseSchema
    GetRegionResponseSchema:
      properties:
        id:
          type: integer
          title: Id
          description: Идентификатор регион
        regionType:
          anyOf:
            - type: integer
            - type: 'null'
          title: Regiontype
          description: Идентификатор типа региона
        accountId:
          type: integer
          title: Accountid
          description: Аккаунт внесший данные о регионе
        name:
          type: string
          title: Name
          description: Название региона
        parentRegion:
          anyOf:
            - type: string
            - type: 'null'
          title: Parentregion
          description: Название родительского региона
        latitude:
          type: number
          title: Latitude
          description: Координаты широты
        longitude:
          type: number
          title: Longitude
          description: Координаты долготы
      type: object
      required:
        - id
        - regionType
        - accountId
        - name
        - parentRegion
        - latitude
        - longitude
      title: GetRegionResponseSchema
    GetRegionTypeSchema:
      properties:
        id:
          type: integer
          title: Id
          description: Идентификатор типа регона
        type:
          type: string
          title: Type
          description: Тип региона
      type: object
      required:
        - id
        - type
      title: GetRegionTypeSchema
    GetWeatherForRegion:
      properties:
        id:
          type: integer
          title: Id
          description: Идентификатор региона
        regionName:
          type: string
          title: Regionname
          description: Название региона
        temperature:
          type: number
          title: Temperature
          description: 'Температура в регионе, °C'
        humidity:
          type: number
          title: Humidity
          description: 'Влажность воздуха в регионе, %'
        windSpeed:
          type: number
          title: Windspeed
          description: 'Скорость ветра, м/с'
        weatherCondition:
          type: string
          title: Weathercondition
          description: Текущее состояние погоды
        precipitationAmount:
          type: number
          title: Precipitationamount
          description: 'Количество осадков, мм'
        measurementDateTime:
          type: string
          format: date-time
          title: Measurementdatetime
          description: Дата и время измерения погодных условий в формате ISO-8601
        weatherForecast:
          items:
            type: integer
          type: array
          title: Weatherforecast
          description: Массив идентификаторов объектов с прогнозом погоды на ближайшие дни
      type: object
      required:
        - id
        - regionName
        - temperature
        - humidity
        - windSpeed
        - weatherCondition
        - precipitationAmount
        - measurementDateTime
        - weatherForecast
      title: GetWeatherForRegion
    GetWeatherForecastResponseSchema:
      properties:
        id:
          type: integer
          title: Id
          description: Уникальный идентификатор созданного прогноза погоды
        regionId:
          type: integer
          title: Regionid
          description: 'Идентификатор региона, для которого был создан прогноз'
        temperature:
          type: number
          title: Temperature
          description: 'Прогнозируемая температура, °C'
        weatherCondition:
          allOf:
            - $ref: '#/components/schemas/WeatherEnum'
          description: Прогнозируемое состояние погоды
        dateTime:
          type: string
          format: date-time
          title: Datetime
          description: Дата и время прогноза в формате ISO-8601
      type: object
      required:
        - id
        - regionId
        - temperature
        - weatherCondition
        - dateTime
      title: GetWeatherForecastResponseSchema
    GetWeatherResponseSchema:
      properties:
        id:
          type: integer
          title: Id
          description: Уникальный идентификатор созданной записи о погоде в регионе
        temperature:
          type: number
          title: Temperature
          description: 'Температура в регионе, °C'
        humidity:
          type: number
          title: Humidity
          description: 'Влажность воздуха в регионе, %'
        windSpeed:
          type: number
          title: Windspeed
          description: 'Скорость ветра, м/с'
        weatherCondition:
          allOf:
            - $ref: '#/components/schemas/WeatherEnum'
          description: Текущее состояние погоды
        precipitationAmount:
          type: number
          title: Precipitationamount
          description: 'Количество осадков, мм'
        measurementDateTime:
          type: string
          format: date-time
          title: Measurementdatetime
          description: Дата и время измерения погодных условий в формате ISO-8601
        weatherForecast:
          items:
            type: integer
          type: array
          title: Weatherforecast
          description: Массив идентификаторов объектов с прогнозом погоды на ближайшие дни
      type: object
      required:
        - id
        - temperature
        - humidity
        - windSpeed
        - weatherCondition
        - precipitationAmount
        - measurementDateTime
        - weatherForecast
      title: GetWeatherResponseSchema
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LoginRequestSchema:
      properties:
        email:
          type: string
          title: Email
          description: Адрес электронной почты
          example: example@example.com
        password:
          type: string
          title: Password
          description: Пароль пользователя
          example: password
      type: object
      title: LoginRequestSchema
    LoginResponseSchema:
      properties:
        id:
          type: integer
          title: Id
          description: Идентификатор аккаунта пользователя
          example: 1
      type: object
      required:
        - id
      title: LoginResponseSchema
    RegionDeleteWeatherResponse:
      properties:
        id:
          type: integer
          title: Id
          description: Идентификатор региона
        name:
          type: string
          title: Name
          description: Название региона
        parentRegion:
          type: string
          title: Parentregion
          description: Название родительского региона
        latitude:
          type: number
          title: Latitude
          description: Координаты широты
        longitude:
          type: number
          title: Longitude
          description: Координаты долготы
      type: object
      required:
        - id
        - name
        - parentRegion
        - latitude
        - longitude
      title: RegionDeleteWeatherResponse
    RegionEditRequestSchema:
      properties:
        name:
          type: string
          title: Name
          description: Новое название региона
        parentRegion:
          type: string
          title: Parentregion
          description: Новое название родительского региона
        latitude:
          type: number
          title: Latitude
          description: Новые координаты широты
        longitude:
          type: number
          title: Longitude
          description: Новые координаты долготы
        regionType:
          type: integer
          title: Regiontype
          description: Новый идентификатор типа региона
      type: object
      required:
        - name
        - latitude
        - longitude
      title: RegionEditRequestSchema
    RegionEditResponseSchema:
      properties:
        id:
          type: integer
          title: Id
          description: Идентификатор региона
        name:
          type: string
          title: Name
          description: Новое имя региона
        parentRegion:
          type: string
          title: Parentregion
          description: Новое название родительского региона
        latitude:
          type: number
          title: Latitude
          description: Новые координаты широты
        longitude:
          type: number
          title: Longitude
          description: Новые координаты долготы
      type: object
      required:
        - id
        - name
        - parentRegion
        - latitude
        - longitude
      title: RegionEditResponseSchema
    RegistrationRequestSchema:
      properties:
        firstName:
          type: string
          title: Firstname
          description: Имя пользователя
          example: Иван
        lastName:
          type: string
          title: Lastname
          description: Фамилия пользователя
          example: Иванов
        email:
          type: string
          title: Email
          description: Адрес электронной почты
          example: example@example.com
        password:
          type: string
          title: Password
          description: Пароль пользователя
          example: password
      type: object
      title: RegistrationRequestSchema
    RegistrationResponseSchema:
      properties:
        id:
          type: integer
          title: Id
          description: Идентификатор аккаунта пользователя
          example: 1
        firstName:
          type: string
          title: Firstname
          description: Имя пользователя
          example: Иван
        lastName:
          type: string
          title: Lastname
          description: Фамилия пользователя
          example: Иванов
        email:
          type: string
          title: Email
          description: Адрес электронной почты
          example: example@example.com
      type: object
      required:
        - id
      title: RegistrationResponseSchema
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    WeatherEnum:
      type: string
      enum:
        - CLEAR
        - CLOUDY
        - RAIN
        - SNOW
        - FOG
        - STORM
      title: WeatherEnum
